# !usr/bin/env python
# -*- coding:utf-8 _*-
"""
@Author:张广勤
@Web site: https://www.tunan.wang
@Github:www.github.com
 
@File:jsonrw01.py
@Time:2022/3/16 11:15

@Motto:不积跬步无以至千里，不积小流无以成江海！
"""
import pandas as pd
import json

df=pd.read_csv(r'..\datanew\data1.csv')
print(df)
print(df.iloc[:,[0,5]])

# jsondata=df.to_json(force_ascii=False)
# print(jsondata)
# print(type(jsondata))

# df.to_json(r'..\datanew\data2.json',force_ascii=False)
#
# with open(r'..\datanew\data2.json','r',encoding='u8') as f:
#     str=f.read()
#     mydict=json.loads(str)
#     print("%"*59)
#     print(mydict)
#     print(mydict['序号'])